package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.AcademicDegree;
import com.iengoo.inductionms.service.AcademicDegreeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * Author:huermao
 * 学位信息表
 **/
@RestController
@RequestMapping("/academic_degree")
public class AcademicDegreeController {
    @Autowired
    private AcademicDegreeService academicDegreeService;
    //查询所以学位信息,返回前端,填写学位时选择使用
    @GetMapping
    public List<AcademicDegree> queryAll() {
        List<AcademicDegree> academicDegreeList = academicDegreeService.queryAll();
        return academicDegreeList;
    }
}
